package com.dayangxiaoen.pms.enums;

import lombok.Getter;

/**
 * @author dayangxiaoen
 *
 * 黄金会员价格类型
 *
 * 序号	状态值	说明
 * 1	0	纯积分
 * 2	1	积分加钱
 * 3	2	现金购买
 */
@Getter
public enum VIPType {

    Only_Score(0, "纯积分"),
    Score_Price(1, "积分加钱"),
    Only_Price(2,"纯现金购买"),

    ;
    private final int value;
    private final String desc;

    VIPType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public boolean equalsValue(Integer value){
        if (value == null) {
            return false;
        }
        return getValue() == value;
    }
}
